<!-- index.html -->
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <script type="text/javascript">
        let testValue = 'testValue';
    </script>
</head>
<body style="font-size: 30px;">
Hello world!
<div id="result">test msg</div>
</body>
<script type="text/javascript">
    function getResult() {
        return document.getElementById('result').innerHTML;
    }
    function getTestValue() {
        return testValue;
    }

</script>
</html>